<?php

namespace app\http\middleware;

class Checkrepeat
{
    public function handle($request, \Closure $next)
    {
    	if(session("?uname")){
    		return redirect('admin/index/index')->with('msg','您已经登陆了')->with('code',1);
    	}
    	return $next($request);
    }
}
